public class StringDemo4 {
    //其他数据类型和String类型的相互转换

    public static void main(String[] args) {
        String s1 = String.valueOf(1234);
        String s2 = String.valueOf(12.56);
        String s3 = String.valueOf(false);

        System.out.println(s1);
        System.out.println(s2);
        System.out.println(s3);
    }
}
